import { getPostList } from '@/axios/api/posts'
import { useQuery } from '@tanstack/vue-query'

export const useHomePostListQuery = () => {
  return useQuery({
    queryKey: ['lastPost'],
    queryFn: () => getPostList({ page: 1 }),
  })
}
